package com.example.ems.bean;

public class Department {
    private int id;
    private String name;
    private Integer managerId;    // 负责人员工的ID (使用 Integer 以允许 null)
    private String managerName;  // 负责人员工的姓名 (用于显示)

    public Department() {}
    public Department(int id, String name) {
        this.id = id;
        this.name = name;
    }

    // Getters and Setters
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    public Integer getManagerId() { return managerId; }
    public void setManagerId(Integer managerId) { this.managerId = managerId; }

    public String getManagerName() { return managerName; }
    public void setManagerName(String managerName) { this.managerName = managerName; }
}
